package com.qly.wapsite.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

@RestController
public class ZikpinController {

    @Autowired
    private RestTemplate restTemplate;

    @RequestMapping("/invoke_website_service")
    public String invokeWebsiteService() {
        return restTemplate.getForObject("http://QLY-WEBSITE/invoke_wapsite_service", String.class);
    }

    @RequestMapping("/wapsite_api")
    public String wapsiteApi() {
        return "i'm wapsite_api";
    }

}
